home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / grafik / elsa / winner / 1000prox / winnt35 / 1000wnt.exe / OEMSETUP.INF < prev    next >
INI File  |  1996-05-15  |  18KB  |  394 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3. [LanguagesSupported]
  4.     ENG
  5. [Options]
  6.     "ELSA WINNER V4.03" = WINNER,   8, 640,  480   , 60 , 0
  7. [MapOfOptions]
  8.     "ELSA WINNER"                    = "ELSA WINNER"
  9. [MiniportDrivers]
  10.     WINNER     = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 12, {WINNER,WINNERMB}, 0 , %SystemRoot%\System32\IoLogMsg.dll , 7
  11.     WINNERMB   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 12, {WINNER,WINNERMB}, 0 , %SystemRoot%\System32\IoLogMsg.dll , 7
  12. [OpenGLDrivers]
  13.     WINNER = WINNER
  14. [OptionsTextENG]
  15.     "ELSA WINNER V4.03" =  "ELSA WINNER V4.03"
  16. [Identify]
  17.     read-syms Identification
  18.     set Status     = STATUS_SUCCESSFUL
  19.     set Identifier = $(OptionType)
  20.     set Media      = #("Source Media Descriptions", 1, 1)
  21.     Return $(Status) $(Identifier) $(Media)
  22. [ReturnOptions]
  23.     set Status        = STATUS_FAILED
  24.     set OptionList     = {}
  25.     set OptionTextList = {}
  26.     set LanguageList = ^(LanguagesSupported, 1)
  27.     Ifcontains(i) $($0) in $(LanguageList)
  28.         goto returnoptions
  29.     else
  30.         set Status = STATUS_NOLANGUAGE
  31.         goto finish_ReturnOptions
  32.     endif
  33. returnoptions = +
  34.     set OptionList     = ^(Options, 0)
  35.     set OptionTextList = ^(OptionsText$($0), 1)
  36.     set Status         = STATUS_SUCCESSFUL
  37. finish_ReturnOptions = +
  38.     Return $(Status) $(OptionList) $(OptionTextList)
  39. [MapToSupportedOption]
  40.     set Status = STATUS_FAILED
  41.     set MappedOption = $($0)
  42.     set OptionList = ^(MapOfOptions, 0)
  43.     ifcontains $($0) in $(OptionList)
  44.         set MappedOption = #(MapOfOptions, $($0), 1)
  45.     else
  46.         set MappedOption = "VGA"
  47.     endif
  48.     set Status = STATUS_SUCCESSFUL
  49.     Return $(Status) $(MappedOption)
  50. [ServicesEntry]
  51.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  52. [InstallOption]
  53.     set Status       = STATUS_FAILED
  54.     set DrivesToFree = {}
  55.     set Option   = $($1)
  56.     set SrcDir   = $($2)
  57.     set AddCopy  = $($3)
  58.     set DoCopy   = $($4)
  59.     set DoConfig = $($5)
  60.     set LanguageList = ^(LanguagesSupported, 1)
  61.     Ifcontains(i) $($0) in $(LanguageList)
  62.     else
  63.         set Status = STATUS_NOLANGUAGE
  64.         goto finish_InstallOption
  65.     endif
  66.     read-syms Strings$($0)
  67.     set OptionList = ^(Options, 0)
  68.     ifcontains $(Option) in $(OptionList)
  69.     else
  70.         goto finish_InstallOption
  71.     endif
  72.     set OptionList = ""
  73.     set MiniportDriver    = #(Options, $(Option), 1)
  74.     set BitsPerPel        = #(Options, $(Option), 2)
  75.     set XResolution       = #(Options, $(Option), 3)
  76.     set YResolution       = #(Options, $(Option), 4)
  77.     set VRefresh          = #(Options, $(Option), 5)
  78.     set Interlaced        = #(Options, $(Option), 6)
  79.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  80.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  81.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  82.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  83.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  84.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  85.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  86.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  87.  
  88.     set OpenGLDriverList = ^(OpenGLDrivers, 0)
  89.  
  90.     read-syms ServicesEntry
  91.     detect    ServicesEntry
  92. installtheoption = +
  93.     ifstr(i) $(AddCopy) == "YES"
  94.         set DoActualCopy = NO
  95.         set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  96.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  97.         ifstr(i) $(STATUS) == NO
  98.             set DoActualCopy = YES
  99.             goto addfiles
  100.         endif
  101.         ForListDo $(InstalledDisplays)
  102.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  103.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  104.             ifstr(i) $(STATUS) == NO
  105.                 set DoActualCopy = YES
  106.             endif
  107.             set FileToCheck = #(Files-DisplayOpenGLDrivers,  $($), 2)
  108.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  109.             ifstr(i) $(STATUS) == NO
  110.                 set DoActualCopy = YES
  111.             endif
  112.             set FileToCheck = #(Files-DisplayPermonDLL,  $($), 2)
  113.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  114.             ifstr(i) $(STATUS) == NO
  115.                 set DoActualCopy = YES
  116.             endif
  117.         EndForListDo
  118. addfiles = +
  119.         ifstr(i) $(DoActualCopy) == NO
  120.             shell "subroutn.inf" DriversExist $($0) $(String1)
  121.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  122.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  123.                 goto finish_InstallOption
  124.             endif
  125.             ifstr(i) $($R0) == STATUS_CURRENT
  126.             else-ifstr(i) $($R0) == STATUS_NEW
  127.                 set DoActualCopy = YES
  128.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  129.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  130.                 goto finish_InstallOption
  131.             else
  132.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  133.                 goto finish_InstallOption
  134.             endif
  135.         endif
  136.         ifstr(i) $(DoActualCopy) == YES
  137.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  138.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  139.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  140.                 goto finish_InstallOption
  141.             endif
  142.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  143.                 set SrcDir = $($R1)
  144.                 ifstr(i) $($R2) != ""
  145.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  146.                 endif
  147.             else
  148.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  149.                 goto finish_InstallOption
  150.             endif
  151.             install Install-AddCopyOption
  152.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  153.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  154.                 goto finish_InstallOption
  155.             endif
  156.         else
  157.             set DoCopy = NO
  158.         endif
  159.     endif
  160.     ifstr(i) $(DoCopy) == "YES"
  161.         read-syms ProgressCopy$($0)
  162.         install Install-DoCopyOption
  163.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  164.             Debug-Output "Copying files failed"
  165.             goto finish_InstallOption
  166.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  167.             set Status = STATUS_USERCANCEL
  168.             goto finish_InstallOption
  169.         endif
  170.     endif
  171.     ifstr(i) $(DoConfig) == "YES"
  172.         shell "registry.inf" CheckSetupModify
  173.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  174.             goto finish_InstallOption
  175.         endif
  176.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  177.             goto finish_InstallOption
  178.         endif
  179.         set ServiceNode   = $(MiniportDriver)
  180.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  181.         set ServicesValues   = { +
  182.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  183.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  184.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  185.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  186.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  187.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }, +
  188.                 {DesktopOnMaximize, 0, $(!REG_VT_DWORD),  1                        }, +
  189.                 {ReverseScreenOrder, 0, $(!REG_VT_DWORD), 0                        }  +
  190.         {ICDInterface.Disable, 0, $(!REG_VT_DWORD), 0                                }  +
  191.         {ICDInterface.ExportAlpha, 0, $(!REG_VT_DWORD), 0                            }  +
  192.         {ICDInterface.SupportSingleBufferedGDI, 0, $(!REG_VT_DWORD), 1               }  +
  193.         {ICDInterface.SupportDoubleBufferedGDI, 0, $(!REG_VT_DWORD), 0               }  +
  194.         {ICDInterface.SizeOfBuffer,0, $(!REG_VT_DWORD), 65536                        }  +
  195.         {ICDInterface.NumberOfDisplayBuffers,0, $(!REG_VT_DWORD), 2                  }  +
  196.         {3DDDI.Disable,0, $(!REG_VT_DWORD), 1                                        }  +
  197.         {GLintDMA.NumberOfBuffers,0, $(!REG_VT_DWORD), 4                             }  +
  198.         {GLintDMA.NumberOfSubBuffers,0, $(!REG_VT_DWORD), 5                          }  +
  199.         {GLintDMA.SizeOfBuffer,0, $(!REG_VT_DWORD), 32768                           }  +
  200.         {GLintDMA.CachedBuffers,0, $(!REG_VT_DWORD), 2                               }  +
  201.                 }
  202.         set ParametersValues = { +
  203.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  204.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  205.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  206.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  207.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       },  +
  208.                 }
  209.         ifstr(i) $(VRefresh) != ""
  210.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  211.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  212.         endif
  213.         ifstr(i) $(Interlaced) != ""
  214.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  215.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  216.         endif
  217.         set DeviceValues     = {}
  218.         set EventLogValues   = { +
  219.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  220.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  221.                 }
  222.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  223.                                                 $(ServicesValues)   +
  224.                                                 $(ParametersValues) +
  225.                                                 $(DeviceValues)     +
  226.                                                 $(EventLogValues)   +
  227.                                                 Device0
  228.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  229.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  230.             goto finish_InstallOption
  231.         endif
  232.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  233.             Debug-Output "MakeServicesEntry failed for video"
  234.             goto finish_InstallOption
  235.         endif
  236.         set KeyPath = { +
  237.                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  238.                 {Microsoft,      0, $(MaskAllAccess)}, +
  239.                 {"Windows NT",   0, $(MaskAllAccess)}, +
  240.                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  241.                 {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  242.                 }
  243.  
  244.         set KeyValue = { +
  245.                 {"3DLabs GLINT driver", 0, $(!REG_VT_SZ), 3DOGLDRV } +
  246.                 }
  247.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  248.         Debug-Output "just did an OGL section"
  249.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  250.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  251.             goto finish_InstallOption
  252.         endif
  253.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  254.             Debug-Output "CreateKey failed for OGLDrivers"
  255.             goto finish_InstallOption
  256.         endif
  257.  
  258.         Debug-Output "VIDEO.INF: success installing an ogl entry"
  259.  
  260.         set KeyPath = { +
  261.                 {SYSTEM,             0, $(MaskAllAccess)}, +
  262.                 {$(!STF_CONTROLSET), 0, $(MaskAllAccess)}, +
  263.                 {Services,           0, $(MaskAllAccess)}, +
  264.                 {Winner,             0, $(MaskAllAccess)}, +
  265.                 {Performance,        0, $(MaskAllAccess)}  +
  266.                 }
  267.  
  268.         set PerformanceValues = { +
  269.                 {Open,         0, $(!REG_VT_SZ), "OpenGlintPerformanceData"    },   +
  270.                 {Close,        0, $(!REG_VT_SZ), "CloseGlintPerformanceData"   },   +
  271.                 {Collect,      0, $(!REG_VT_SZ), "CollectGlintPerformanceData" },   +
  272.                 {Library,      0, $(!REG_VT_SZ), "glntctrs.dll"                }    +
  273.                 }
  274.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(PerformanceValues)
  275.         Debug-Output "just did a perfmon section"
  276.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  277.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  278.             goto finish_InstallOption
  279.         endif
  280.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  281.             Debug-Output "CreateKey failed for glint perfmon"
  282.             goto finish_InstallOption
  283.         endif
  284.  
  285.         Debug-Output "VIDEO.INF: success installing a perfmon entry"
  286.  
  287.         ;
  288.         ;
  289.         ; then disable the previous video entry
  290.         ;
  291.  
  292.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  293.             ifstr(i) $(CurrentEntry) != VGA
  294.                 ifstr(i) $(CurrentEntry) != ""
  295.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  296.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  297.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  298.                         goto errorconfig
  299.                     endif
  300.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  301.                         Debug-Output "DisableServices entry failed"
  302.                     endif
  303.                 endif
  304.             endif
  305.         endif
  306.         goto configdone
  307. errorconfig = +
  308.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  309.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  310.             ifstr(i) $(CurrentEntry) != ""
  311.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  312.             endif
  313.         endif
  314.         goto finish_InstallOption
  315. configdone = +
  316.     endif
  317.     set Status = STATUS_SUCCESSFUL
  318. finish_InstallOption = +
  319.     ForListDo $(DrivesToFree)
  320.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  321.     EndForListDo
  322.     Return $(Status)
  323. [Install-AddCopyOption]
  324.     set STF_VITAL = ""
  325.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  326.                                   $(MiniportDriver)              +
  327.                                   $(SrcDir)                      +
  328.                                   $(!STF_WINDOWSSYSPATH)\drivers
  329.     ForListDo $(InstalledDisplays)
  330.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  331.                                       $($)                       +
  332.                                       $(SrcDir)                  +
  333.                                       $(!STF_WINDOWSSYSPATH)
  334.         AddSectionKeyFileToCopyList   Files-DisplayOpenGLDrivers +
  335.                                       $($)                       +
  336.                                       $(SrcDir)                  +
  337.                                       $(!STF_WINDOWSSYSPATH)
  338.     EndForListDo
  339.  
  340.     ; ELSA - install our control apps
  341.  
  342.     set elsaSetupList = ^(Files-ELSAaddOn, 0)
  343.     ForListDo $(elsaSetupList)
  344.         AddSectionKeyFileToCopyList   Files-ELSAaddOn            +
  345.                                       $($)                       +
  346.                                       $(SrcDir)                  +
  347.                                       $(!STF_WINDOWSSYSPATH)
  348.  
  349.     EndForListDo
  350.  
  351.     ; ELSA - end install control apps
  352.  
  353.     exit
  354. [Install-DoCopyOption]
  355.     CopyFilesInCopyList
  356.     exit
  357. [ProgressCopyENG]
  358.     ProCaption   = "Windows NT Setup"
  359.     ProCancel    = "Cancel"
  360.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  361.                    "to cancel copying files?"
  362.     ProCancelCap = "Setup Message"
  363.     ProText1     = "Copying:"
  364.     ProText2     = "To:"
  365. [StringsENG]
  366.     String1 = "Display"
  367.     String2 = "Please enter the full path to the WINNER display driver "+
  368.               "driver files.  Then choose Continue."
  369. [Source Media Descriptions]
  370.     1  = "WINNER / Windows NT 3.5x / Disk1"  , TAGFILE = disk1
  371.     2  = "WINNER / Windows NT 3.5x / Disk2"  , TAGFILE = disk2
  372.  
  373. [Files-DisplayOpenGLDrivers]
  374. WINNER   = 2,3DOGLDRV.DLL , SIZE=99999
  375. WINNERMB = 2,3DOGLDRV.DLL , SIZE=99999
  376.  
  377. [Files-DisplayPermonDLL]
  378. WINNER   = 2,glntctrs.DLL, SIZE=999
  379. WINNERMB = 2,glntctrs.DLL, SIZE=999
  380.  
  381. [Files-DisplayDLLs]
  382. WINNER   = 1,WINNER.DLL , SIZE=99999
  383. WINNERMB = 1,WINNERMB.DLL , SIZE=99999
  384. [Files-DisplayMiniportDrivers]
  385. WINNER   = 1,WINNER.SYS , SIZE=99999
  386. WINNERMB = 1,WINNER.SYS , SIZE=99999
  387.  
  388. [Files-ELSAaddOn]
  389. addOn0 = 2,WINCTRL.CPL , SIZE=99999
  390. addOn1 = 2,WINCTDEU.DLL, SIZE=99999
  391. addOn2 = 2,WINCTENG.DLL, SIZE=99999
  392.  
  393. 
  394.